#!/usr/bin/env python
# -*- coding:utf-8 -*-

from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client

secret_id = 'AKID2pXzA9YNeePDl2tlHXXZMDqEMTAptMgl'  # 替换为用户的 secretId
secret_key = 'zjDTVHnJaaJlyvb0NVMwFK9j2PXPzJQH'  # 替换为用户的 secretKey

region = 'ap-chengdu'  # 替换为用户的 Region

config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)

client = CosS3Client(config)


# client.delete_object(
#         Bucket='niucunguo-1257250950',
#         Key='p1.png',  # 上传到 桶 之后 的 文件名
#     )

objects = {
                "Quiet": "true",
                "Object": [
                    {
                        "Key": "1585571074525_4s.txt"
                    },
                    {
                        "Key": "1585571074529_7B(I_Z6H5@BG`WQ(NX}7XK4.png"
                    }
                ]
            }
client.delete_objects(
    Bucket='s28-18800140015-1585570056-1257250950',
    Delete=objects
)